package com.jifeng.br.pjj.bookreader.controller.api;

import com.jifeng.br.pjj.bookreader.service.AdService;
import com.jifeng.br.pjj.bookreader.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author PangJunjie
 * @Date 2023/7/18/018
 */
@RestController
@RequestMapping("/api/banner")
public class AdApiController {
    @Autowired
    private AdService adService;

    @GetMapping("/list")
    public R list() {
        return R.data(adService.getList());
    }

}
